pid=`ps ax | grep java | grep moguding | grep -v grep | awk '{print $1}'`
if test -n "$pid"
then
  kill $pid
  echo "service $pid stopped!!!!!"
fi
JAVA_OPS="-Xmx100m -Dspring.profiles.active=prod"
java -jar $JAVA_OPS target/auto-moguding-0.0.1-SNAPSHOT.jar >> logs/out.log